package com.zy.yun.base.common;

import lombok.Data;

import java.util.List;

/**
 * layui 数据表格
 * @author Rlax
 *
 */
@Data
public class DataTable<T> {

    private int code = 0;
    private String msg;
    private long count;

    private List<T> data;

    public DataTable() {}

    public DataTable(PageBean<T> page) {
        this.count = page.getTotalRow();
        this.data = page.getList();
    }


}
